﻿/***************************************************
//  Copyright (c) Premium Tax Free 2011
***************************************************/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace PremierTaxFree.PTFLib.Data
{
    public class DbFileInfo : IReadable
    {
        public int ID { get; private set; }
        public string Name { get; private set; }
        public string Content { get; private set; }
        public DateTime DateInserted { get; private set; }

        public void Load(IDataReader reader)
        {
            ID = reader.GetInt32(0);
            Name = reader.GetString(1);
            Content = reader.GetString(2);
            DateInserted = reader.GetDateTime(3);
        }
    }
}
